﻿@*
    For more information on enabling MVC for empty projects, visit https://go.microsoft.com/fwlink/?LinkID=397860
*@
@{
    Layout = null;
}

<script src="~/lib/layui/layui.js"></script>
<link href="~/lib/layui/css/layui.css" rel="stylesheet" />

<script src="~/lib/jquery/dist/jquery.min.js"></script>
<script src="~/lib/jquery/dist/jquery.js"></script>
<link href="~/lib/layui/css/layui.css" rel="stylesheet" />
<script src="~/lib/layui/layui.js"></script>
<script src="~/js/js.cookie.js"></script>
<script src="~/js/moment.js"></script>
<script src="~/lib/jquery/dist/jquery.js"></script>
<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <title>Demo</title>
    <!-- 请勿在项目正式环境中引用该 layui.css 地址 -->
    <link href="//unpkg.com/layui@2.9.20/dist/css/layui.css" rel="stylesheet">
</head>
<body>
    <div>

        <table class="layui-hide" id="ID-table-demo-data"></table>
    </div>
    <!-- 请勿在项目正式环境中引用该 layui.js 地址 -->
    <script src="//unpkg.com/layui@2.9.20/dist/layui.js"></script>
    <script>

        //就绪函数
        $(function () {


            StashHtml()
        })

       //仓库显示
        function StashHtml() {
        
         
            $.ajax({

                url: '@ViewBag.FoundationRead'+ "/api/Acquire/LoginHhtml",
                data: JSON.stringify({}),
                type:"post",
                async:false,
                dataType:"json",
                contentType: "application/json",
                success: res => {
                    
                 console.log(res.date)
                    layui.use('table', function () {
                        var table = layui.table;

                        // 已知数据渲染
                        var inst = table.render({
                            elem: '#ID-table-demo-data',
                            cols: [[ //标题栏
                                { field: 'logsid', title: '序号', width: 200, sort: true },
                                { field: 'operatorName', title: '操作人', width: 200 },
                                { field: 'operatorTime', title: '操作时间', width: 200 },
                                { field: 'performOperation', title: '执行操作', width: 200 },
                            ]],
                            data: res.data,
                            //skin: 'line', // 表格风格
                            //even: true,
                            page: true, // 是否显示分页
                            limits: [5, 10, 15],
                            limit: 5 // 每页默认显示的数量
                        });
                    });
                }

            })





        }

            var $ = layui.$;
            var layer = layui.layer;
            var util = layui.util;
            // 事件
            util.on('lay-on', {

                'test-iframe-curl': function () {
                    layer.open({
                        type: 2,
                        title: '增加角色',
                        shadeClose: true,
                        maxmin: true, //开启最大化最小化按钮
                        area: ['900px', '600px'],
                        content: '/Document/StashAdd'
                    });
                }
            })

        // 事件
       



        function GOStach()
        {

          location.href = '../Document/StashAdd';

        };


       
    </script>

</body>
</html>

